package com.mmc.client.factory;

import com.mmc.client.ContentClient;
import com.mmc.entity.Content;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 作者：李嘉浩
 * 时间：2024-09-16-16:55
 * 功能：
 */
@Component
public class contentClientFactory implements FallbackFactory<ContentClient> {

    @Override
    public ContentClient create(Throwable throwable) {
        return new ContentClient() {
            @Override
            public List<Content> findByCategoryId(long l) {
                return null;
            }
        };
    }
}
